package vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.springframework.web.filter.CharacterEncodingFilter;
@Entity(name="student")
@Table(name="students")
public class Student implements Serializable{
	@Id
	@SequenceGenerator(name="st_seq",sequenceName="seq_cust")
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="st_seq")
	private Integer id;
	private String uname;
	private String psd;
	private String ip;
	private Date time;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUname() { 
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getPsd() {
		return psd;
	}
	public void setPsd(String psd) {
		this.psd = psd;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	@Override
	public String toString() {
		return "Student [id=" + id + ", uname=" + uname + ", psd=" + psd
				+ ", ip=" + ip + ", time=" + time + "]";
	}
	
}
